const api = require('../../../utils/api') // 引入API
const {myRequest} = require('../../../utils/myRequest') // 请求函数
Page({
  data: {
    brandDetail: [] // 品牌详情
  },
  onLoad: function (options) {
    // 接收brand页面传过来的id值
    let id = options.id; 
    myRequest({
      url: api.brandDetail,
      data: {
        id: id
      },
      success: (res)=>{
        let brandDetail = res.data.data.brand;
        this.setData({
          brandDetail: brandDetail
        })
      },
      fail:(err)=>{
        console.log(err);
      }
    });
  },
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})